﻿<m:ElevatorAutomaton 
    x:Class="Rhizome.QuickStart.Elevator.Model.Stop" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:m="clr-namespace:Rhizome.QuickStart.Elevator.Model" 
	xmlns:r="clr-namespace:Rhizome.Model;assembly=Rhizome.Core" 
	InitialState="Monitor" 
    >

    <m:ElevatorState Id="Monitor">
        <r:EventTrigger ClrEvent="StopClick">
            <r:MultiAction>
                <r:SetBool Property="UpChecked" Value="False" />
                <r:SetBool Property="DownChecked" Value="False" />
				<r:SendMessage Message="Stopped 1" />
            </r:MultiAction>
        </r:EventTrigger>

		<!--
		
		Just another syntax (TypeConverter will be used)
		
		<r:EventTrigger 
			ClrEvent="StopClick" 
			Action="UpChecked=False; DownChecked=False; SendMessage Stopped 1"
			/>
		
		And another sweet WPF syntax (using text content & TypeConverter)
		
		<r:EventTrigger ClrEvent="StopClick">
			UpChecked=False; 
			DownChecked=False; 
			SendMessage Stopped 1
		</r:EventTrigger>
		
		-->

	</m:ElevatorState>
    
</m:ElevatorAutomaton>